//
//  PersonViewControler.h
//  Cabinet
//
//  Created by Florent Montsegur on 01/05/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"

@interface PersonViewControler : NSObject<NSTableViewDataSource> {
@private
    NSArray *mPersons;
}

// NSTableViewDataSource
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex;

- (NSInteger) count;

- (Person*)getPersonAtIndex:(NSInteger)aRowIndex;
- (void) setPersons:(NSArray*)aPersonList;

@end
